package com.sinvk.kesion.criminalintent;

import android.content.Context;

/**
 * Created by Administrator on 2016/9/8.
 */
public class CrimeLab {
    private static CrimeLab sCrimeLab;
    private Context mAppContext;

    /***
     * 单例模式
     * 私有构造函数，仅能在内部使用
     * @param appContext
     */
    private CrimeLab(Context appContext) {
        this.mAppContext = appContext;
    }

    public static CrimeLab getInstance(Context c) {
        if (sCrimeLab == null) {
            sCrimeLab = new CrimeLab(c.getApplicationContext());
        }
        return sCrimeLab;
    }
}
